PathOfTravel.CreateMultiple
Description:
Creates multiple new paths of travel between same size sets of start and end points and provides creation result statuses.
Creates multiple new paths of travel between same size sets of start and end points and provides creation result statuses.
Remarks:
InvalidOperationException is thrown if PathOfTravel cannot be created for the following conditions:
InvalidOperationException is thrown if PathOfTravel cannot be created for the following conditions:
- View has crop box active and crop box is split
- View model outline area is larger than the current limit (2,000,000 sq.ft.)
- View export contains too much geometry (more than 200,000 lines)
Overloads (2):
CreateMultiple(View,IList[XYZ],IList[XYZ],IList[PathOfTravelCalculationStatus])
public static IList<PathOfTravel> CreateMultiple(
View DBView,
IList<XYZ> pathStarts,
IList<XYZ> pathEnds,
out IList<PathOfTravelCalculationStatus> resultStatus
)
-
DBViewThe floor plan view to use when computing the shortest distance.
-
pathStartsThe start points of the path. The Z coordinates are ignored.
-
pathEndsThe end points of the path. The Z coordinates are ignored.
-
resultStatusResult statuses of each path of travel creation. The order of statuses corresponds to the order of elements in the array returned by the function.
Return Value
nullNothingnullptr
The array of newly created path of travel elements, or null Nothing nullptr a null reference ( Nothing in Visual Basic) if no path between the two points is found.
The order of elements corresponds to the order of start/end points in the argument arrays.
There are some additional conditions that are checked and if any condition is true the null Nothing nullptr a null reference ( Nothing in Visual Basic) value is returned: View has crop box active and start or end point lies outside of the crop Start and end points are too close
-
View is not in a family or a document in in-place edit mode. -or- View is not a floor plan view.
-
A non-optional argument was NULL
-
The document containing DBView is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- This operation cannot be performed while the document is in edit mode. -or- The Path of Travel calculation service is not available
-
The document containing DBView is in failure mode: an operation has failed, and Revit requires the user to either cancel the operation or fix the problem (usually by deleting certain elements). -or- The document containing DBView is being loaded, or is in the midst of another sensitive process.
-
The document containing DBView has no open transaction.